package com.ruoyi.machine.domain;

import com.ruoyi.agent.domain.KwMachineAgent;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 主机信息对象 kw_machine_info
 * 
 * @author gonianer
 * @date 2023-11-14
 */
public class KwMachineInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增键 */
    private Long id;

    /** IP地址 */
    @Excel(name = "IP地址")
    private String ip;

    /** 主机名称 */
    @Excel(name = "主机名称")
    private String hostName;

    /** SSH端口 */
    @Excel(name = "SSH端口")
    private Integer sshPort;

    /** 机房 */
    @Excel(name = "机房")
    private String idc;

    /** 服务器型号 */
    @Excel(name = "服务器型号")
    private String serverType;

    /** 操作系统类型 */
    @Excel(name = "操作系统类型")
    private String os;

    /** 处理器/cpu型号 */
    @Excel(name = "处理器/cpu型号")
    private String cpu;

    /** 网卡名称 */
    @Excel(name = "网卡名称")
    private String netCardName;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 凭证ID */
    private Long credentialId;

    /** 添加人 */
    private String createUser;

    /** 修改人 */
    private String updateUser;

    /** 备注 */
    private String comment;

    private KwMachineAgent agent;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setHostName(String hostName) 
    {
        this.hostName = hostName;
    }

    public String getHostName() 
    {
        return hostName;
    }
    public void setIdc(String idc) 
    {
        this.idc = idc;
    }

    public String getIdc() 
    {
        return idc;
    }
    public void setServerType(String serverType) 
    {
        this.serverType = serverType;
    }

    public String getServerType() 
    {
        return serverType;
    }
    public void setOs(String os) 
    {
        this.os = os;
    }

    public String getOs() 
    {
        return os;
    }
    public void setCpu(String cpu) 
    {
        this.cpu = cpu;
    }

    public String getCpu() 
    {
        return cpu;
    }
    public void setNetCardName(String netCardName) 
    {
        this.netCardName = netCardName;
    }

    public String getNetCardName() 
    {
        return netCardName;
    }
    public void setCredentialId(Long credentialId)
    {
        this.credentialId = credentialId;
    }

    public Long getCredentialId()
    {
        return credentialId;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }

    public Integer getSshPort() {
        return sshPort;
    }

    public void setSshPort(Integer sshPort) {
        this.sshPort = sshPort;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public KwMachineAgent getAgent() {
        return agent;
    }

    public void setAgent(KwMachineAgent agent) {
        this.agent = agent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ip", getIp())
            .append("hostName", getHostName())
            .append("sshPort", getSshPort())
            .append("idc", getIdc())
            .append("serverType", getServerType())
            .append("os", getOs())
            .append("cpu", getCpu())
            .append("netCardName", getNetCardName())
            .append("status", getStatus())
            .append("credentialId", getCredentialId())
            .append("createTime", getCreateTime())
            .append("createUser", getCreateUser())
            .append("updateTime", getUpdateTime())
            .append("updateUser", getUpdateUser())
            .append("comment", getComment())
            .toString();
    }
}
